package cn.powertime.evaluation.service.impl;

import cn.powertime.evaluation.entity.CircleUser;
import cn.powertime.evaluation.entity.CpsCircle;
import cn.powertime.evaluation.entity.SysRes;
import cn.powertime.evaluation.mapper.CpsCircleUserMapper;
import cn.powertime.evaluation.service.CircleUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CircleUserServiceImpl extends ServiceImpl<CpsCircleUserMapper,CircleUser>  implements CircleUserService{

    @Autowired
    private  CpsCircleUserMapper cpsCircleUserMapper;
    @Override
    public boolean ownSave(CircleUser menu) {
        return save(menu);
    }

    @Override
    public boolean ownUpdateById(CircleUser menu) {
        return updateById(menu);
    }

    @Override
    public List<CpsCircle> circleUserList(Long userId) {
        return cpsCircleUserMapper.circleUserList(userId);
    }
}
